/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pig.goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 商品表
 *
 * @author pig code generator
 * @date 2021-07-15 18:55:25
 */
@Data
@TableName("tb_item")
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "商品表")
public class TbItem extends Model<TbItem> {
private static final long serialVersionUID = 1L;

    /**
     * 商品id，同时也是商品编号
     */
    @TableId(type = IdType.INPUT)
    @ApiModelProperty(value="商品id，同时也是商品编号")
    private Long id;
    /**
     * 商品标题
     */
    @ApiModelProperty(value="商品标题")
    private String title;
    /**
     * 商品卖点
     */
    @ApiModelProperty(value="商品卖点")
    private String sellPoint;
    /**
     * 商品价格，单位为：元
     */
    @ApiModelProperty(value="商品价格，单位为：元")
    private BigDecimal price;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private Integer stockCount;
    /**
     * 库存数量
     */
    @ApiModelProperty(value="库存数量")
    private Integer num;
    /**
     * 商品条形码
     */
    @ApiModelProperty(value="商品条形码")
    private String barcode;
    /**
     * 商品图片
     */
    @ApiModelProperty(value="商品图片")
    private String image;
    /**
     * 所属类目，叶子类目
     */
    @ApiModelProperty(value="所属类目，叶子类目")
    private Long categoryid;
    /**
     * 商品状态，1-正常，2-下架，3-删除
     */
    @ApiModelProperty(value="商品状态，1-正常，2-下架，3-删除")
    private String status;
    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @ApiModelProperty(value="更新时间")
    private LocalDateTime updateTime;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private String itemSn;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private BigDecimal costPirce;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private BigDecimal marketPrice;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private String isDefault;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private Long goodsId;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private String sellerId;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private String cartThumbnail;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private String category;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private String brand;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private String spec;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private String seller;

    private String freemarker;

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSellPoint() {
		return sellPoint;
	}

	public void setSellPoint(String sellPoint) {
		this.sellPoint = sellPoint;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public Integer getStockCount() {
		return stockCount;
	}

	public void setStockCount(Integer stockCount) {
		this.stockCount = stockCount;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public String getBarcode() {
		return barcode;
	}

	public void setBarcode(String barcode) {
		this.barcode = barcode;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public Long getCategoryid() {
		return categoryid;
	}

	public void setCategoryid(Long categoryid) {
		this.categoryid = categoryid;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public LocalDateTime getCreateTime() {
		return createTime;
	}

	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

	public LocalDateTime getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(LocalDateTime updateTime) {
		this.updateTime = updateTime;
	}

	public String getItemSn() {
		return itemSn;
	}

	public void setItemSn(String itemSn) {
		this.itemSn = itemSn;
	}

	public BigDecimal getCostPirce() {
		return costPirce;
	}

	public void setCostPirce(BigDecimal costPirce) {
		this.costPirce = costPirce;
	}

	public BigDecimal getMarketPrice() {
		return marketPrice;
	}

	public void setMarketPrice(BigDecimal marketPrice) {
		this.marketPrice = marketPrice;
	}

	public String getIsDefault() {
		return isDefault;
	}

	public void setIsDefault(String isDefault) {
		this.isDefault = isDefault;
	}

	public Long getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(Long goodsId) {
		this.goodsId = goodsId;
	}

	public String getSellerId() {
		return sellerId;
	}

	public void setSellerId(String sellerId) {
		this.sellerId = sellerId;
	}

	public String getCartThumbnail() {
		return cartThumbnail;
	}

	public void setCartThumbnail(String cartThumbnail) {
		this.cartThumbnail = cartThumbnail;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getSpec() {
		return spec;
	}

	public void setSpec(String spec) {
		this.spec = spec;
	}

	public String getSeller() {
		return seller;
	}

	public void setSeller(String seller) {
		this.seller = seller;
	}

	public String getFreemarker() {
		return freemarker;
	}

	public void setFreemarker(String freemarker) {
		this.freemarker = freemarker;
	}
}










